package com.xw.wuliu;
import android.graphics.Bitmap;
import android.view.View;
import android.widget.ListView;
import android.widget.Toast;

import com.baidu.mapapi.map.MKMapViewListener;
import com.baidu.mapapi.map.MapPoi;


/**
 * 
 * @author Administrator
 * 功能： MAP手势操作监听器
 *
 */
public class MapViewListener implements MKMapViewListener {
	
	private ListView serverLv = null;  //服务单列表

	public MapViewListener(ListView list)
	{
		serverLv = list;
	}
	
	//滑动地图完成
	@Override
	public void onMapMoveFinish() {
		
		
		if(serverLv.getVisibility() == View.VISIBLE)
		{
			serverLv.setVisibility(View.GONE);
		}
	}
	
	//单击地图某点，返回该点的地址名
	@Override
	public void onClickMapPoi(MapPoi mapPoiInfo) {
		// TODO Auto-generated method stub
		

		
		
		String title = "";
		if (mapPoiInfo != null){
			title = mapPoiInfo.strText;
			
		}
	}

	//得到当前地图图层
	@Override
	public void onGetCurrentMap(Bitmap b) {
		// TODO Auto-generated method stub
		
	}

	//动画完成时调用此函数
	@Override
	public void onMapAnimationFinish() {
		// TODO Auto-generated method stub
		
	}

}
